package com.smoed.common.utilities;

public final class Sleeper {
    private Sleeper() {
    }

    public static void sleepMinutes(int minutes) {
        sleep(minutes * 60000);
    }

    public static void sleepSeconds(int seconds) {
        sleep(seconds * 1000);
    }

    public static void sleepMillis(int milliSeconds) {
        sleep(milliSeconds);
    }

    private static void sleep(int milliSeconds) {
        try {
            Thread.sleep(milliSeconds);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
